export PYTHONPATH=$PYTHONPATH:/disk2/xd/project/mmdetection:/disk2/xd/project/mmdetection/mmdeploy
python mmdeploy/tools/deploy.py \
        mmdeploy/configs/mmdet/detection/detection_onnxruntime_static.py \
        /disk2/xd/project/mmdetection/projects/CO-DETR/configs/codino/co_dino_5scale_r50_8xb2_1x_coco.py \
        /disk2/xd/project/mmdetection/work_dirs/co_dino_5scale_r50_8xb2_1x_coco/epoch_12.pth \
        /disk2/xd/project/mmdetection/demo/demo.jpg \
        --work-dir /disk2/xd/project/mmdetection/checkpoints \
        --device cpu

polygraphy surgeon sanitize /disk2/xd/project/mmdetection/checkpoints/end2end.onnx --fold-constants -o /disk2/xd/project/mmdetection/checkpoints/end2end_folded.onnx
python -m onnxsim /disk2/xd/project/mmdetection/checkpoints/end2end.onnx /disk2/xd/project/mmdetection/checkpoints/end2end_folded_sim.onnx